package com.htpb.portal.sevice.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htpb.portal.dao.TestAccountDAO;
import com.htpb.portal.form.TestAccount;
import com.htpb.portal.sevice.TestAccountService;

@Service
public class TestAccountServiceImpl implements TestAccountService{

	@Autowired
	private TestAccountDAO accountDAO;
	
	@Transactional
	public void addContact(TestAccount account) {
		accountDAO.addContact(account);
	}

	@Transactional
	public List<TestAccount> listContact() {
		return accountDAO.listContact();
	}

	@Transactional
	public void removeContact(Integer id) {
		
		accountDAO.removeContact(id);
	}

}
